package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;

public class SystemDictionaryItem {
    private Long id;
    private Long parentId;
    private String title;
    private Integer sequence;

    public SystemDictionaryItem() {
    }

    public String getJson() {
        HashMap<String, Object> map = new HashMap();
        map.put("id", this.id);
        map.put("title", this.title);
        map.put("sequence", this.sequence);
        map.put("parentId", this.parentId);
        return JSON.toJSONString(map);
    }

    public Long getId() {
        return this.id;
    }

    public Long getParentId() {
        return this.parentId;
    }

    public String getTitle() {
        return this.title;
    }

    public Integer getSequence() {
        return this.sequence;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }
}

